package com.bean;

import java.util.Date;

public class RowBean {

	private String developer;
	private String nameProject;
	private Date startTime;
	private Date endTime;
	private Date date;
	private Date totalHours;
	private String nameRequirement;
	private String application;
	private String businessAnalyticsAssigned;
	private String numberRequirement;
	private String type;

	public String getDeveloper() {
		return developer;
	}

	public void setDeveloper(String developer) {
		this.developer = developer;
	}

	public String getNameProject() {
		return nameProject;
	}

	public void setNameProject(String nameProject) {
		this.nameProject = nameProject;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getTotalHours() {
		return totalHours;
	}

	public void setTotalHours(Date totalHours) {
		this.totalHours = totalHours;
	}

	public String getNameRequirement() {
		return nameRequirement;
	}

	public void setNameRequirement(String nameRequirement) {
		this.nameRequirement = nameRequirement;
	}

	public String getApplication() {
		return application;
	}

	public void setApplication(String application) {
		this.application = application;
	}

	public String getBusinessAnalyticsAssigned() {
		return businessAnalyticsAssigned;
	}

	public void setBusinessAnalyticsAssigned(String businessAnalyticsAssigned) {
		this.businessAnalyticsAssigned = businessAnalyticsAssigned;
	}

	public String getNumberRequirement() {
		return numberRequirement;
	}

	public void setNumberRequirement(String numberRequirement) {
		this.numberRequirement = numberRequirement;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean isEmpty() {
		boolean empty = true;
		if (developer != null || nameProject != null || nameProject != null || startTime != null || endTime != null || date != null || totalHours != null
				|| nameRequirement != null || application != null || businessAnalyticsAssigned != null || numberRequirement != null || type != null) {
			empty = false;
		}
		return empty;
	}

	@Override
	public String toString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append(developer == null ? "" : "developer=" + developer + "\t|");
		stringBuilder.append(nameProject == null ? "" : "nameProject=" + nameProject + "\t|");
		stringBuilder.append(startTime == null ? "" : "startTime=" +startTime + "\t|");
		stringBuilder.append(endTime == null ? "" : "endTime=" + endTime + "\t|");
		stringBuilder.append(date == null ? "" : "date=" +  date + "\t|");
		stringBuilder.append(totalHours == null ? "" : "totalHours="+totalHours + "\t|");
		stringBuilder.append(nameRequirement == null ? "" : "nameRequirement="+nameRequirement + "\t|");
		stringBuilder.append(application == null ? "" : "application="+application + "\t|");
		stringBuilder.append(businessAnalyticsAssigned == null ? "" : "businessAnalyticsAssigned="+businessAnalyticsAssigned + "\t|");
		stringBuilder.append(numberRequirement == null ? "" : "numberRequirement="+numberRequirement + "\t|");
		stringBuilder.append(type == null ? "" : "type="+type + "\t|");
		return stringBuilder.toString();
	}

}
